package com.nets.pool;

import com.nets.packet.PacketI;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author sig
 * @since 2016/9/17
 */
public class PacketThreadPool {
    private static ExecutorService service = Executors.newFixedThreadPool(
            5 * Runtime.getRuntime().availableProcessors());

    public static void execute(PacketI command) {
        service.execute(command);
    }
}
